package day03;
//此类是用于验证扩展运算符的测试demo
public class ExtendDemo {
    public static void main(String[] args) {
        //扩展运算符：+=、-=、*=、/=、%=
        //扩展运算符都是在变量自身基础之上进行运算的
        int  a  = 5;
        System.out.println(a += 5);     //10，相当于a =  a + 5
        System.out.println(a -= 5);     //5，相当于a =  a - 5
        System.out.println(a *= 5);     //25，相当于a =  a * 5
        System.out.println(a /= 5);     //5，相当于a =  a / 5
        System.out.println(a %= 5);     //0，相当于a =  a % 5
    }
}
